<template>
  <div :class="$style['menu']" style="height: 100vh">
    <a-layout style="height: 100vh">
      <a-layout-header :class="$style['header']">
        <div :class="$style['logoDiv']">
          <img
            :class="$style['logo']"
            src="https://www.antdv.com/assets/logo.1ef800a8.svg"
            alt=""
          />
          <span style="font-size: 18px">Ant Design Vue</span>
        </div>
        <a-menu
          v-model:selectedKeys="selectedKeys1"
          theme="light"
          mode="horizontal"
          :style="{ lineHeight: '64px' }"
        >
          <a-menu-item key="1">我的</a-menu-item>
        </a-menu>
      </a-layout-header>
      <router-view :class="$style['content']" />
      <a-layout-footer style="text-align: center; padding: 10px">
        Ant Design ©2018 Created by Ant UED
      </a-layout-footer>
    </a-layout>
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue';

const selectedKeys1 = ref<string[]>(['1']);
</script>

<style lang="less" module>
.menu {
  .header {
    background: #fff;
    margin-bottom: 10px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    .logoDiv {
      width: 200px;
      .logo {
        height: 60px;
      }
    }
  }
  .content {
    height: calc(100% - 56px);
    overflow-x: hidden;
    overflow-y: auto;
  }
  :global {
    .ant-menu-item:hover {
      background-color: var(--inline-menu-active);
    }
  }
}
</style>
